﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using ZhongKeSite.Common.Utility;
using ZhongKeSite.Entity;
using ZhongKeSite.Entity.Models;

namespace ZhongKeSite.Service
{
    public interface INewsService
    {
        #region 后台-新闻管理
        LayPager<News> GetNewsPagedList(int pageIndex, int pageSize, Expression<Func<News, bool>> predicate);
        ResultResponse<News> GetNews(string id);
        ResultResponse AddNews(News model,IPathProvider pathProvider);
        ResultResponse UpdateNews(News model);
        ResultResponse UpdateNewsState(List<string> ids, string userName, DataStatus dataStatus);
        #endregion

        #region 前台
        NewsInfo GetNewsInfo();
        #endregion

    }
}
